import { createApp } from 'vue'
import { createPinia } from 'pinia'
import Varlet from '@varlet/ui'
import { Card,Field, CellGroup } from 'vant';
import '@varlet/ui/es/style'
import App from './App.vue'
import router from './router'
import svgIcon from '@/components/SvgIcon/index.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'amfe-flexible/index.js'
import './assets/styles/index.scss'

import './permission'
import directive from './directive'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(Varlet)
app.use(ElementPlus)
app.use(Card)
directive(app);

app.component('svg-icon', svgIcon)

app.mount('#app')
